   
class Parent:
    var1 = "bacon"
    var2 = "sausage"    

class Child(Parent):
    var2 = "toast"

def main():
    p = Parent()
    print(p.var2)
    c = Child()
    print(c.var2)
    
if __name__ == "__main__":
    main()